package com.hyg.lib_music.modle;

import java.util.List;

/**
 * @author: Administrator
 * @date: 2021/4/12
 */
public class FavMusicListData {


    /**
     * code : 200
     * message : 操作成功
     * data : [{"musicId":1,"musicName":"花好月圆","musician":"无","musicDuration":163,"musicUrl":"https://app-music-library.oss-cn-beijing.aliyuncs.com/中医类/五声调式/宫调式/花好月圆 (民乐合奏) - 传奇乐坊.mp3"},{"musicId":2,"musicName":"平湖秋月","musician":"无","musicDuration":168,"musicUrl":"https://app-music-library.oss-cn-beijing.aliyuncs.com/中医类/五声调式/宫调式/平湖秋月 (民乐合奏) - 传奇乐坊.mp3"}]
     */

    public int code;
    public String message;
    public List<DataDTO> data;

    public FavMusicListData() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        /**
         * musicId : 1
         * musicName : 花好月圆
         * musician : 无
         * musicDuration : 163
         * musicUrl : https://app-music-library.oss-cn-beijing.aliyuncs.com/中医类/五声调式/宫调式/花好月圆 (民乐合奏) - 传奇乐坊.mp3
         */

        public int musicId;
        public String musicName;
        public String musician;
        public int musicDuration;
        public String musicUrl;
        boolean isSelect=false;
        boolean isPlaying=false;
        boolean isEditable=false;
        boolean isFav=false;


        public DataDTO() {
        }


        public boolean isFav() {
            return isFav;
        }

        public void setFav(boolean fav) {
            isFav = fav;
        }

        public boolean isEditable() {
            return isEditable;
        }

        public void setEditable(boolean editable) {
            isEditable = editable;
        }

        public boolean isPlaying() {
            return isPlaying;
        }

        public void setPlaying(boolean playing) {
            isPlaying = playing;
        }

        public boolean isSelect() {
            return isSelect;
        }

        public void setSelect(boolean select) {
            isSelect = select;
        }

        public int getMusicId() {
            return musicId;
        }

        public void setMusicId(int musicId) {
            this.musicId = musicId;
        }

        public String getMusicName() {
            return musicName;
        }

        public void setMusicName(String musicName) {
            this.musicName = musicName;
        }

        public String getMusician() {
            return musician;
        }

        public void setMusician(String musician) {
            this.musician = musician;
        }

        public int getMusicDuration() {
            return musicDuration;
        }

        public void setMusicDuration(int musicDuration) {
            this.musicDuration = musicDuration;
        }

        public String getMusicUrl() {
            return musicUrl;
        }

        public void setMusicUrl(String musicUrl) {
            this.musicUrl = musicUrl;
        }
    }
}
